package com.health.db.service.user.impl;

import java.util.List;

import com.health.db.dao.user.IStuffListDao;
import com.health.db.dto.DoctorListDto;
import com.health.db.dto.StuffDetailDto;
import com.health.db.model.StuffList;
import com.health.db.model.StuffListExample;
import com.health.db.service.user.IStuffListService;

public class StuffListServiceImpl implements IStuffListService {
 
	IStuffListDao stuffListDao ;
	@Override
	public List<DoctorListDto> selectByQueryDocReq(StuffListExample req) {
		List<DoctorListDto> list=stuffListDao.selectByQueryDocReq( req);
		return list;
	}

	@Override
	public StuffDetailDto selectByStuffId(Long stuffId) {
		StuffDetailDto s=stuffListDao.selectByStuffId(stuffId);
		return  s;
	}
	
	@Override
	public StuffDetailDto selectByStuffNo(String stuffNo) {
		StuffDetailDto s=stuffListDao.selectByStuffNo(stuffNo.trim());
		return  s;
	}

	@Override
	public StuffDetailDto selectByOpenId(String openId) {
		return null;
	}

	public IStuffListDao getStuffListDao() {
		return stuffListDao;
	}

	public void setStuffListDao(IStuffListDao stuffListDao) {
		this.stuffListDao = stuffListDao;
	}

	@Override
	public List<StuffList> selectByExample(StuffListExample example) {
		// TODO Auto-generated method stub
		return stuffListDao.selectByExample(example);
	}

}
